package com.scau.data.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.persistence.Table;
import java.util.Date;

/**
 * 换货时延迟交货记录
 */
@Data
@TableName("owe")
public class OweDO {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Date time; // 时间
    private Integer serviceId; // 售后
    private String phone; // 客户联系方式
    private String barCode; // 商品码
    @TableField("`count`")
    private Integer count; // 数量
    private Boolean finished; // 是否完成
    private String customer; // 客户名

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getServiceId() {
        return serviceId;
    }

    public void setServiceId(Integer serviceId) {
        this.serviceId = serviceId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Boolean getFinished() {
        return finished;
    }

    public void setFinished(Boolean finished) {
        this.finished = finished;
    }

    public String getCustomer() {
        return customer;
    }

    public void setCustomer(String customer) {
        this.customer = customer;
    }

    @Override
    public String toString() {
        return "OweDO{" +
                "id=" + id +
                ", time=" + time +
                ", serviceId=" + serviceId +
                ", phone='" + phone + '\'' +
                ", barCode='" + barCode + '\'' +
                ", count=" + count +
                ", finished=" + finished +
                ", customer='" + customer + '\'' +
                '}';
    }
}
